Why is 'getopt' undefined when trying to use it in my Python command-line script